﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace GeoVision.Addin.Helpers
{
    public static class DirectoryHelper
    {
        public static bool DirectoryExists(string directory)
        {
            directory = Path.GetDirectoryName(directory);
            return Directory.Exists(directory);
        }
        public static void CreateDirectory(string directoryPath)
        {
            Directory.CreateDirectory(directoryPath);
        }
        public static bool FileExists(string indexPath)
        {
            return File.Exists(indexPath);
        }

        public static string GetUserAppDataFolderPath()
        {
            String appData =Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
            return appData;
        }
    }
}